package com.samphanie.auiu.common.exception;

/**
 * 断言处理类，用于抛出各种API异常
 *
 * @author ZSY
 * @createTime 2021/4/19 17:56
 */
public class ApiAsserts {

    public static void fail(String message){
        throw new ApiException(message);
    }

    public static void fail(IErrorCode errorCode){
        throw new ApiException(errorCode);
    }

}
